import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
// 封装获取用户资料的API
export function getUserInfo(params) {
  return request({
    url: '/sys/profile',
    params
  })
}
// 修改用户密码
export function updatePassword(data) {
  return request({
    url: '/sys/user/updatePass',
    method: 'PUT',
    data
  })
}
